package annotation.demo04;

public class Calculate {
    @Check
    public void add() {
        System.out.println("1 + 1 = " + (1 + 1));
    }

    @Check
    public void red() {
        System.out.println("1 - 1 = " + (1 - 1));
    }

    @Check
    public void mul() {
        System.out.println("1 * 1 = " + (1 * 1));
    }

    @Check
    public void div() {
        System.out.println("1 / 0 = " + (1 / 0));
    }

    public void m() {
        System.out.println("m被执行");
    }
}
